package com.example.unisys.service;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.unisys.dao.UserConfigMapper;
import com.example.unisys.entity.UserConfig;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true, rollbackFor = Exception.class)
public class UserConfigService extends ServiceImpl<UserConfigMapper, UserConfig> {
    public UserConfig findByUserId(String userId) {
        return baseMapper.selectById(userId);
    }
}
